package Var1022.Teacher;

//父类 老师姓名，年龄，教龄和性
public class Pet {
    private String name;//老师姓名
    private int age;//年龄
    private int teachingage;//教龄
    private char gender;//性别

    public void show(){

    }

    //自我介绍
    public void selfIntroduce(){
        System.out.println("同学们大家好:"+"我是:"+name+",我的性别是:"+gender+",我的年龄是:"+age+",我的教龄是:"+teachingage+"");
    }

    //上课
    public void giveLession(){
        System.out.println("上课");
        System.out.println("下课");
    }

    public Pet(String name, int age, int teachingage, char gender) {
        this.name = name;
        this.age = age;
        this.teachingage = teachingage;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeachingage() {
        return teachingage;
    }

    public void setTeachingage(int teachingage) {
        this.teachingage = teachingage;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }
}
